@use '@/assets/scss/main' as *;

.auth-page {
    display: flex;
    align-items: center;
  }
  
  .auth-container {
    width: 100%;
    padding: 0 1rem;
    margin:11rem 0;
  }
  
  .auth-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
  
    h2 {
      color: $myprimary-color;
      font-size: 1.5rem;
      text-align: center;
      margin-bottom: 2rem;
    }
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  
    .input-wrapper {
      position: relative;
    }
  
    .input-icon {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      width: 20px;
      height: 20px;
      z-index: 1;
    }
  
    input {
      width: 100%;
      padding: 0.8rem 1rem 0.8rem 3rem;
      border: 1px solid #e4e7ed;
      border-radius: 6px;
      font-size: 1rem;
      transition: all 0.3s;
  
      &:focus {
        border-color: $myprimary-color;
        box-shadow: 0 0 0 2px rgba(24, 103, 202, 0.1);
        outline: none;
      }
  
      &::placeholder {
        color: #a8abb2;
      }
    }
  
    .error {
      display: block;
      color: #f56c6c;
      font-size: 0.85rem;
      margin-top: 0.5rem;
      padding-left: 0.5rem;
    }
  }
  
  .submit-btn {
    width: 100%;
    padding: 1rem;
    background: $myprimary-color;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: 1rem;
  
    &:hover {
      opacity: 0.9;
    }
  
    &:active {
      transform: scale(0.98);
    }
  }
  
  .auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #606266;
  
    a {
      color: #1867CA;
      text-decoration: none;
      font-weight: 500;
  
      &:hover {
        text-decoration: underline;
      }
    }
  }
  
  @media (max-width: 480px) {
    .auth-form {
      padding: 1.5rem;
      
      h2 {
        font-size: 1.3rem;
      }
    }
  
    .form-group input {
      padding-left: 2.5rem;
    }
  
    .input-icon {
      left: 0.8rem;
      width: 18px;
      height: 18px;
    }
  }